<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Education Management System</title>
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='stylesheets/admin_index.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='stylesheets/index.css') }}">
    <link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='stylesheets/tw.css') }}">
</head>

<body>

    <header>
        <span class="title">Educational Management System</span>
        <a id="logout-btn" href="/logout">Logout</a>
        <a id="welcome">Welcome, {{name}} ({{kind}})</a>
    </header>

    <div style="height: calc(100vh - 76px);" class="flex items-start w-full">
        <nav id="sidebar">
            <ul>
                <li><a href="/">Home</a></li>
                <li><a href="/assignment/page" class="active">Assignment Management</a></li>
                <li><a href="/instructor/message">Messages</a></li>
                <li><a href="/notifications">Notifications</a></li>
                <li><a href="/forum">Forum</a></li>
            </ul>
        </nav>
    
        <div class="table_display_div flex-auto">
            <div class="table_head">
                <b>Submissions for the assignment</b>
            </div>
    
            <table class="table_display" id="course_table" name="course_table">
                <thead>
                    <tr>
                        <th>Submission ID</th>
                        <th>Student ID</th>
                        <th>Submitted work</th>
                        <th>Operation</th>
                    </tr>
                </thead>
                <tbody>
                    {% for submission in submissions %}
                    <tr>
                        <td>{{submission[0]}}</td>
                        <td>{{submission[1]}}</td>
                        <td><a href="\{{submission[3]}}" download class="sub-btn">Download</a></td>
                        <td><a href="/submission/mark?submission_id={{submission[0]}}" class="main-btn">Mark </a></td>
                    </tr>
                    {% endfor %}
                </tbody>
            </table>
        </div>
    </div>

    <footer></footer>

    <script src="{{ url_for('static', filename='js/main.js') }}"></script>

</body>

</html>